import request from '@/utils/request'

export function getTaskTodoList(params) {
    return request({
        url: '/taskTodo/list',
        method: 'get',
        params,
    })
}

export function createTodo(data) {
    return request({
        url: '/taskTodo/create',
        method: 'post',
        data,
    })
}

export function editTodo(data) {
    return request({
        url: '/taskTodo/edit',
        method: 'post',
        data,
    })
}

export function completeTodo(data) {
    return request({
        url: '/taskTodo/complete',
        method: 'post',
        data,
    })
}

export function deleteTodo(data) {
    return request({
        url: '/taskTodo/delete',
        method: 'post',
        data,
    })
}